home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Feb 91 / MacApp.Tech$ 2⁄1⁄91 / 2822-SetIcon bug in 2.0.1-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1008 b   |  31 lines  |  [TEXT/GEOL]

  1. Item    6282466                         30-Jan-91        07:54PST
  2.  
  3. From:   CDA0220                         DEV Bell Northern Resrch,B Papp,IDV
  4.  
  5. To:     APPLE.BUGS                      Apple Bugs Reporting
  6.         MACAPP.TEST                     MacApp SQA Team
  7.         MACAPP.TECH$                    MacApp Technical
  8.  
  9. ------------------------------------------------------------------------------
  10.  
  11. Sub:    SetIcon bug in 2.0.1
  12.  
  13. Here is a nasty bug with TIcon that crept into MacApp 2.0.1.
  14.  
  15. This code was added to the TIcon.SetIcon method in an attempt to set
  16. fPreferColor based on the icon data:
  17.  
  18.    IF GetHandleSize(theIcon) <> kBWIconSize THEN
  19.    fPreferColor := TRUE
  20.    ELSE
  21.    fPreferColor := FALSE;
  22.  
  23. Unfortunately, theIcon is typically a purgeable 'ICON' resource handle. If the
  24. resource has been purged,  GetHandleSize returns 0 and MacApp thinks it has a
  25. colour icon. Next time the view is drawn you crash big time when the ICON is
  26. treated as a cicn.
  27.  
  28. Gordon Eastman
  29. Bell-Northern Research
  30.  
  31.